package com.wcar.sale.controller;

import com.wcar.common.vo.Result;
import com.wcar.sale.service.StoreService;
import com.wcar.sale.vo.saleTN;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @program: four-wcar-idea
 * @description:
 * @author: 张云龙
 * @create: 2024-05-24 10:38
 **/
@RestController
@RequestMapping("/sale")
public class StoreController {
	@Autowired
	private StoreService storeService ;

	@GetMapping("/store/api/selectAllStore")
	public Result selectAllStore(){
	return storeService.getallStroe();
	}
	@GetMapping("/api/findSettledMerchants")
	public Result<saleTN> findSettledMerchants() {
		return storeService.getallM();
	}
}
